cmake_minimum_required(VERSION 3.5.0)

project(ogl)

set(CMAKE_CXX_STANDARD 17)

file(GLOB ogl_gut_src *.cpp)

add_library(ogl-gut ${ogl_gut_src})


if(UNIX)
target_link_libraries(ogl-gut ogl-math glfw3 GL stb pthread dl assimp)
endif()

if(WIN32)
target_link_libraries(ogl-gut ogl-math glfw3 glad OpenGL32 stb assimp)
endif()

if(WIN32)
target_include_directories(ogl-gut PUBLIC ../../../include)
target_link_directories(ogl-gut PUBLIC ../../../lib)
endif()